package cn.com.cjwsjy.monitor.platform.earlywarn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * 
 * @author hd
 * @email 2659528139@qq.com
 * @date 2021-02-02 09:48:32
 */
@Data
@TableName("warning_message")
public class WarningMessageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.INPUT)
	@JsonSerialize(using = ToStringSerializer.class)
	private Integer id;
	/**
	 * 角色姓名(多个);号分隔
	 */
	private String roleName;
	/**
	 * 预警等级
	 */
	private String warningLevel;
	/**
	 * 邮箱接收0是，1否
	 */
	private Integer emailReception;
	/**
	 * 手机接收0是，1否
	 */
	private Integer phoneReception;
	/**
	 * 系统接收0是，1否
	 */
	private Integer systemReception;
	/**
	 * 工程部位
	 */
	private String pointPosition;
	/**
	 * 账户
	 */
	@TableField(exist = false)
	private String account;

	/**
	 * 关联的应急预案id（多个），以英文,分割
	 */
	private String planIds;
}
